﻿using System;
using System.Collections.Generic;
using Volo.Abp.Localization.VirtualFiles;

namespace YaAppoint
{
    /// <summary>
    /// 检查项目
    /// </summary>
    public class ExamItem : CommonEntity
    {
        /// <summary>
        /// 目录
        /// </summary>
        public virtual bool IsDirectory { get; set; } = false;

        /// <summary>
        /// 适用性别
        /// </summary>
        public virtual ApplicableSex ApplicableSex { get; set; } = ApplicableSex.None;

        /// <summary>
        ///  设备类型
        /// </summary>
        public virtual DeviceType DeviceType { get; set; }

        /// <summary>
        /// 科室
        /// </summary>
        public virtual Department Department { get; set; }

        /// <summary>
        /// 科室ID
        /// </summary>
        public virtual Guid DepartmentId { get; set; }

        /// <summary>
        /// 设备类型ID
        /// </summary>
        public virtual Guid DeviceTypeId { get; set; }

        /// <summary>
        /// 子级
        /// </summary>
        public virtual Guid? ParentId { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        public virtual string? Icon { get; set; }

        /// <summary>
        /// 工作量
        /// </summary>
        public virtual float? Workload { get; set; }

        /// <summary>
        /// 项目费用
        /// </summary>
        public virtual float? Fee { get; set; }

        /// <summary>
        /// 是否互认项目
        /// </summary>
        public virtual int? IsShared { get; set; }

        /// <summary>
        /// 互认标识
        /// </summary>
        public virtual string? SharedSign { get; set; }

        /// <summary>
        /// 互认项目编码
        /// </summary>
        public virtual string? SharedCode { get; set; }

        /// <summary>
        /// 互认名称
        /// </summary>
        public virtual string? SharedName { get; set; }

        /// <summary>
        /// 医疗机构编码
        /// </summary>
        public virtual string? InstitutionCode { get; set; }

        /// <summary>
        /// 医疗结构名称
        /// </summary>
        public virtual string? InstitutionName { get; set; }

        /// <summary>
        /// 允许检查的设备
        /// </summary>
        public virtual List<Device> Devices { get; set; }

        /// <summary>
        /// 是否要求一天中的认定时间段检查
        /// </summary>
        public virtual bool RequireInterval { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public virtual TimeSpan? StartTime {get;set;}

        /// <summary>
        /// 结束时间
        /// </summary>
        public virtual TimeSpan? EndTime { get; set; }
    }
}
